<template>
	<view>
		<!-- 我的收藏 -->
		<view class="Mc" v-for="(item,index) in scList">
			<u-image :src="item.src" height="140rpx" width="240rpx" radius="20"></u-image>
			<view class="sc">
				<text class="sc_name">{{item.name}}</text>
				<text class="sc_price">{{item.price}} 元/平方</text>
				<text class="sc_zs">在售</text>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				src: '',
				scList: []
			};
		},
		onShow() {
			this.$api({
				url: '/lp',
				successCB: res => {
					// console.log(res);
					this.scList = res.data.data
					// console.log(this.scList);
				}
			})
		}
	}
</script>
<style lang="scss">
	.Mc {
		padding: 30rpx 40rpx;
		display: flex;
		text {
			display: block;
		}
		.sc {
			margin-left: 20rpx;
			.sc_name{
				font-weight: bold;
			}
			.sc_price{
				font-size: 24rpx;
				color: red;
				margin: 10rpx 0;
			}
			.sc_zs{
				padding: 8rpx;
				font-size: 24rpx
			}
		}
	}
</style>
